import axios from 'axios'

// 二次封装
const request = axios.create({
  baseURL: '',
  timout: 5000
})

// 请求拦截
request.interceptors.request.use(config => {
  return config
}, err => {
  return Promise.reject(err)
})
// 响应拦截
request.interceptors.response.use(response => {
  return response
}, err => {
  return Promise.reject(err)
})

export default request
